package com.example.sherlockzhong.plush_v2.Constants;

/**
 * Created by SherlockZhong on 9/20/14.
 */
public class UrlConstant {

    public static String baseUrl = "http://120.24.58.118/api";

    public static String version = "/v1";

    // 登陆
    public static String loginUrl = baseUrl + version + "/ZF/verify?studentnumber=%s&zfpwd=%s";

    // 课程
    public static String classesUrl = baseUrl + version + "/ZF/getTimeTable?studentnumber=%s&token=%s";

    // 考试
    public static String examsUrl = baseUrl + version + "/ZF/getExamination?studentnumber=%s&token=%s";

    // 成绩
    public static String gradesUrl = baseUrl + version + "/ZF/getReportCard?studentnumber=%s&token=%s";

    // 校园卡
    public static String ecardVerifyUrl = baseUrl + version + "/ecard/verify?studentnumber=%s&ecardpwd=%s";
    public static String ecardRefreshUrl = baseUrl + version + "/ecard/getRecord?studentnumber=%s&token=%s";
    public static String ecardHistoryUrl = baseUrl + version + "/ecard/getTodayRecord?studentnumber=%s&token=%s";

    // 订阅
    public static String allPostersUrl = baseUrl + version + "/posters/getList?studentnumber=%s";
    public static String posterNewsUrl = baseUrl + version + "/posters/getInformation?id=%s";
    public static String subscribeUrl = baseUrl + version + "/users/unsubscribe?studentnumber=%s&token=%s&id=%s";
    public static String unsubscribeUrl = baseUrl + version + "/users/subscribe?studentnumber=%s&token=%s&id=%s";
    public static String subscribedPostersUrl = baseUrl + version + "/users/getPoster?studentnumber=%s&token=%s&type=1";
    public static String subscribedNewsUrl = baseUrl + version + "/users/getInformation?studentnumber=%s&token=%s";

}
